File with shared javascript functions