Added vector js file and cleaned up 5am code