Removed javascript bugs