fixed admin javascript