Finish javascript