Could anyone convert the following VB codes to Javascript
Thanks


VB Code:
  1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  2. If KeyCode = vbKeySpace Then
  3.     x = roket.UBound + 1
  4.         Load roket(x)
  5.             roket(x).Visible = True
  6.    
  7. End If
  8.  
  9. End Sub
  10. Private Sub Form_Load()
  11. Timer1.Enabled = True
  12. End Sub
  13. Private Sub Timer1_Timer()
  14.   Dim y As Integer
  15. For y = 1 To x
  16. roket(y).Left = roket(y).Left + 10
  17. Next
  18. End Sub