Deving index. Removing protocol from javascript