Moved custom javascript to external file