moved js to application