Code made comfortable with os-x, js bugs fixed
protocol removed from getCurrenUrl