Test javascript spinner