moved detail js to js folder