Separate file for javascript functions.